class CreateRoles < ActiveRecord::Migration
  def self.up
    create_table :roles do |t|
      t.string :title
    end
    
    Role.create(:title => "users");
    Role.create(:title => "announcements");
    Role.create(:title => "pages");
    Role.create(:title => "photos");
    Role.create(:title => "podcast");
    Role.create(:title => "videos");
    Role.create(:title => "premissions");
    Role.create(:title => "tags")
    Role.create(:title => "app_questions")
    Role.create(:title => "settings")
    Role.create(:title => "admin");
  end

  def self.down
    drop_table :roles
  end
end
